package org.greatstorm.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class EntityObject implements Serializable {

	private static final long serialVersionUID = 1L;

	private String kind;
	private String key;
	private Map<String, Object> reposity = new HashMap<String, Object>();

	public String getKind() {
		return kind;
	}

	public void setKind(String kind) {
		this.kind = kind;
	}

	public void put(String key, Object val) {
		reposity.put(key, val);
	}

	public Object get(String key) {
		return reposity.get(key);
	}

	public void deleteProperty(String... keys) {
		for (String k : keys) {
			reposity.remove(k);
		}
	}

	public Set<String> getPropertyNames() {
		return reposity.keySet();
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
		reposity.put("key", key);
	}

}
